import React from 'react'
import { Switch, Route, Redirect } from 'react-router-dom'

import { Home } from '@/views/home'
import List from '@/views/list/List'
import Detail from '@/views/detail/Detail'

export default function App () {
  return (
    <Switch>
      <Route path="/home" component={Home}></Route>
      <Route path="/list" component={List}></Route>
      <Route path="/detail" component={Detail}></Route>
      <Redirect from="/" to="/home"></Redirect>
    </Switch>
  )
}